484ad4c5b0866cecd77dd0c1b974dcc2c01b7d58,cepheus-ngsi/src/main/java/com/orange/ngsi/server/NgsiValidation.java,NgsiValidation,checkNotifyContext,#NotifyContext#,35
Before Change
public void checkNotifyContext(NotifyContext notifyContext) throws MissingRequestParameterException {
if ((notifyContext.getSubscriptionId() == null) || (notifyContext.getSubscriptionId().isEmpty())) {
throw new MissingRequestParameterException("subscriptionId", "string");
}
if ((notifyContext.getOriginator() == null) || (notifyContext.getOriginator().toString().isEmpty())){
After Change
public void checkNotifyContext(NotifyContext notifyContext) throws MissingRequestParameterException {
if (nullOrEmpty(notifyContext.getSubscriptionId())) {
throw new MissingRequestParameterException("subscriptionId", "string");
}
if (nullOrEmpty(notifyContext.getOriginator())){